﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using IBuy.Entity;
using IBuy.Forms;


namespace IBuy
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            
        }

        private void CloseItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void AboutItem_Click(object sender, EventArgs e)
        {
            AboutBox aboutBox = new AboutBox();
            aboutBox.ShowDialog();
        }

        private void AddGoodsItem_Click(object sender, EventArgs e)
        {
            GoodsManageForm goodsManageForm = new GoodsManageForm();
            goodsManageForm.ShowDialog();
        }

        private void AddDiscountItem_Click(object sender, EventArgs e)
        {
            DiscountForm discountForm = new DiscountForm();
            discountForm.ShowDialog();
        }

        private void ManageGoodsTypeItem_Click(object sender, EventArgs e)
        {
            GoodsTypesForm form = new GoodsTypesForm();
            form.ShowDialog();
        }

        private void 统计ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IBuy.Forms.Chart chart = new IBuy.Forms.Chart();
            chart.ShowDialog();
        }
    }
}
